import { BaseEntity } from '../../base/entity/base';
import { Column, Entity } from 'typeorm';

@Entity('content_banner', { comment: '轮播图' })
export class ContentBannerEntity extends BaseEntity {
    @Column({ comment: '标题', nullable: true })
    title: string;

    @Column({ comment: '图片', nullable: true })
    image: string;

    @Column({ comment: '跳转链接', nullable: true })
    link: string;

    @Column({ comment: '类型 0-内部 1-外部', default: 0, type: 'tinyint' })
    type: number;

    @Column({ comment: '状态 0-禁用 1-启用', default: 1, type: 'tinyint' })
    status: number;

    @Column({ comment: '排序', default: 0, type: 'int' })
    sort: number;
}

